package com.th.therp.pojo.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SaleDto {
    @NotNull
    private Integer material;

    @NotNull
    private Integer customer;

    @NotNull
    private Integer store;

    @NotNull(message = "数量不能为空")
    @Positive(message = "数量必须为正整数")
    private Integer quantity;
}
